package com.zmn.oms.dubbo.interfaces.zmn.master.order;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.dubbo.dto.common.work.BaseRequestDIO;
import com.zmn.oms.dubbo.dto.common.work.MasterWorkCompleteCodeDIO;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * 类描述：完成码/核销码
 *
 * @author liuying
 * @date 2021/07/20 17:28
 */
public interface MasterWorkCompleteCodeRemoteService {

    /**
     * 描述：保存核销码
     *
     * @param requestDIO
     */
    @ApiOperation(value = "获取订单核销码", notes = "获取订单核销码")
    ResponseDTO getCompleteCode(@NotNull(message = "入参不能为空") BaseRequestDIO requestDIO);

    /**
     * 描述：保存核销码
     *
     * @param masterWorkCompleteCodeDIO
     */
    @ApiOperation(value = "保存核销码", notes = "保存核销码")
    ResponseDTO saveCompleteCode(@NotNull(message = "入参不能为空") @ApiParam(value = "核销码", required = true) MasterWorkCompleteCodeDIO masterWorkCompleteCodeDIO);

}
